import pygame


class LauraBullet:
    def __init__(self, player):
        self.image_right = pygame.image.load(r"image/bullet_right.png")
        self.image_left = pygame.image.load(r"image/bullet_left.png")
        self.speed = 10
        self.dir = 0
        if player.player_face == 0:
            self.coord_x = player.coord_x + 15
            self.coord_y = player.coord_y + 5
            self.dir = 0
            self.image = pygame.image.load(r"image/bullet_up.png")
        elif player.player_face == 1:
            self.coord_x = player.coord_x + 15
            self.coord_y = player.coord_y + 50
            self.dir = 1
            self.image = pygame.image.load(r"image/bullet_down.png")
        elif player.player_face == 2:
            self.coord_x = player.coord_x + 50
            self.coord_y = player.coord_y + 24
            self.dir = 2
            self.image = pygame.image.load(r"image/bullet_right.png")
        else:
            self.coord_x = player.coord_x - 5
            self.coord_y = player.coord_y + 24
            self.dir = 3
            self.image = pygame.image.load(r"image/bullet_left.png")


class LauraAttack:
    def __init__(self, player):
        self.image_right = pygame.image.load(r"image/LauraAttack_right.png")
        self.image_left = pygame.image.load(r"image/LauraAttack_left.png")
        self.speed = 1
        self.dir = 0
        if player.player_face == 0:
            self.coord_x = player.coord_x
            self.coord_y = player.coord_y - 5
            self.dir = 0
            self.image = pygame.image.load(r"image/LauraAttack_up.png")
        elif player.player_face == 1:
            self.coord_x = player.coord_x
            self.coord_y = player.coord_y + 5
            self.dir = 1
            self.image = pygame.image.load(r"image/LauraAttack_down.png")
        elif player.player_face == 2:
            self.coord_x = player.coord_x + 5
            self.coord_y = player.coord_y
            self.dir = 2
            self.image = pygame.image.load(r"image/LauraAttack_right.png")
        else:
            self.coord_x = player.coord_x - 5
            self.coord_y = player.coord_y
            self.dir = 3
            self.image = pygame.image.load(r"image/LauraAttack_left.png")
